package day20170929;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.IOException;

public class JsoupTest {
    public static void main(String[] args) throws IOException {

        Document doc = Jsoup.connect("http://www.qq.com/").get();
        //System.out.println(doc.select("div.newsContent"));
        System.out.println(doc.select("div.newsContent").text());
        System.out.println(doc.title());
        System.out.println(doc.body().text());
    }
}
